package com.yb.login.center.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Copyright (C), 2022-2022, 姚兵
 * Author: 32210
 * Date: 2022/12/6 19:50
 * FileName: VerifyCode
 * Description:
 */

@Component
@Data
@ConfigurationProperties("login.verify-code")
public class VerifyCode {


    Config mobile=new Config(60,6);

    Config image=new Config(-1,6);


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Config {
        private Integer timeout=60;
        private Integer length=6;
    }
}
